﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rel.Expressions
{
    
	/// <summary>
	/// Creates a subexpression (expression) operation.
	/// </summary>
    public class SubExpression:RegBase
    {
	
        public SubExpression(RelGroup subexpression, RelGroup parent)
            :base(parent)
        {
           
            AddChildExpression(subexpression);
          
        }

        public override string Pattern
        {
            get
            {
                string pattern = "(" + ChildExpressions.First().Pattern + ")";
                return pattern;
            }
        }


    }
}
